<%@ page language="java"  pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>welcome</title>
	<script src="../../js/jquery-3.3.1.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../js/bootstrap.js" type="text/javascript" charset="utf-8"></script>
	<link rel="stylesheet" type="text/css" href="../../css/bootstrap.css"/>
	<style>
		.md{
			margin-right: 5px;
		}
		
		.md a{
			text-decoration: none;
			color: #000000;
		}
		
		#content{
			width: 2000px;
			height: 800px;
			margin-top: 20px;
			/*background-color: #7ba8d4;*/
			background-image: url(../../images/3.jpg);
		}

		#likestr{
			margin-left: 150px;
		}
	</style>
</head>
<body style="background-image: url(../../images/3.jpg)" >
<div id="main">
	<div id="head" style="background-image: url(../../images/3.jpg)">
		<h2 style="color: white">科室管理</h2>
		<div id="menu" style="background-image: url(../../images/3.jpg)">
			<form action="queryDep" method="get">
				<button type="button" class="md btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
					科室添加
				</button>

				<input type="text" name="likestr" id="likestr"/>
				<input type="submit" value="搜索" />
			</form>
		</div>
		<iframe id="content" name="content-iframe"
				src="mainDep" scrolling="no"
				frameborder="1">

		</iframe>
	</div>
	<!-- Modal -->
	<div class="modal fade" id="myModal2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
		<div class="modal-dialog" role="document">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
					<h4 class="modal-title" id="myModalLabel2">科室修改</h4>
				</div>
				<div class="modal-body">
					<form action="#" method="post" id="set-form">
						科室编号：<input type="text" name="departmentId" value="编号" disabled/><br>
						科室名称：<input type="text" name="departmentName" value="科室名称"/><br>
						创建时间：<input type="datetime" name="departmentName" disabled/><br>
						创 建 人：<input type="text" name="founder" disabled/><br>
						修改时间：<input type="datetime" name="departmentName" value="当前时间" disabled/><br>
						修 改 人：<input type="text" name="founder"/><br>
					</form>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
					<button type="submit" class="btn btn-primary" form="set-form">确定修改</button>
				</div>
			</div>
		</div>
	</div>

	<!-- Modal -->
	<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
		<div class="modal-dialog" role="document">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
					<h4 class="modal-title" id="myModalLabel">科室添加</h4>
				</div>
				<div class="modal-body">
					<form action="addDep" method="post" id="add-form">
						科室编号：<input class="add-inp" type="text" name="departmentId" disabled/><br><br>
						科室名称：<input class="add-inp" type="text" name="departmentName"/><br><br>
						创建时间：<input class="add-inp" type="datetime" name="departmentName" value="当前时间" disabled/><br><br>
						创 建 人：<input class="add-inp" type="text" name="founder"/><br><br>
					</form>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
					<button type="submit" class="btn btn-primary" form="add-form">确定添加</button>
				</div>
			</div>
		</div>
	</div>
</div>
</body>
</html>